package org.yogurtcat.server.modules.transaction.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;

@Data
@Entity
public class Transaction implements Serializable  {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@Id
	@SequenceGenerator(name = "project_generator", sequenceName = "project_sequence", initialValue = 0)
	@GeneratedValue(generator = "project_generator")
	private Long id;

	/**
	 * 项目名
	 */
	@Column(nullable = false)
	private String name;

	/**
	 * 项目阶段
	 */
	@Column(nullable = false)
	private String orderNo;

	/**
	 * 项目责任人
	 */
	@Column(nullable = false)
	private String price;

	/**
	 * 项目描述
	 */
	@Column
	private String status;

	/**
	 * 创建日期
	 */
	@Column(nullable = false)
	@Temporal(TemporalType.DATE)
	private Date createDate;

	/**
	 * 最后修改日期
	 */
	@Column(nullable = false)
	@Temporal(TemporalType.DATE)
	private Date updateDate;
}
